package com.zhx.learn;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 *describe: feign 客户端测试  负载均衡  断流   接口调用
 *
 *@author zhanghaixuan
 *@date 2019/03/29
 **/


@FeignClient(value = "provider")
public interface ServiceClient {

	@RequestMapping(value = "/test/hi",method = RequestMethod.GET)
	String sayHiFromClientOne1(@RequestParam(value = "name") String name);

	@RequestMapping(value = "/test/hi/{name}",method = RequestMethod.GET)
	String sayHiFromClientOne2(@PathVariable(value = "name") String name);

	@RequestMapping(value = "/test/hipojo",method = RequestMethod.POST)
	String sayHiFromClientOne3(@RequestBody Entity entity);
}
